<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>09复合选择器之伪类选择器-链接伪类</title>
    <!-- 为了确保生效需按照以下顺序声明:LVHA -->
    <style>
        /* 未被访问过的 */
        
        a:link {
            color: black;
            text-decoration: none;
        }
        /* 访问过的链接 */
        
        a:visited {
            color: orange;
        }
        /* 鼠标悬停 */
        
        a:hover {
            color: red;
            text-decoration: underline;
        }
        /* 鼠标按下去未弹起 */
        
        a:active {
            color: olivedrab;
        }
        
        li:first-child {
            color: pink;
        }
        
        li:nth-child(3) {
            color: red;
        }
    </style>
</head>

<body>
    <div>
        <a href="#">超链接</a>
        <a href="http://www.sina.com">超链接2</a>
    </div>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>

</body>

</html>